package grape.portal.one.flowable;

import org.flowable.idm.spring.SpringIdmEngineConfiguration;
import org.flowable.spring.boot.EngineConfigurationConfigurer;
import org.springframework.context.annotation.Configuration;

/**
 * Created by yangwei
 * Created at 2020/7/15 13:10
 */
@Configuration
public class CustIdmEngineConfiguration implements EngineConfigurationConfigurer<SpringIdmEngineConfiguration> {
    @Override
    public void configure(SpringIdmEngineConfiguration engineConfiguration) {
        // 禁用数据库版本检查和更新，因为在使用sharding jdbc的情况下数据库获取有问题
        // 建议如果升级数据库版本，使用工作流模块，先启动一下
        engineConfiguration.setUsingRelationalDatabase(false);
    }
}
